import { axios } from '@/utils/request'

/**
 * 查询操作日志列表
 * @param query
 * @returns {*}
 */
export function pageOperLog(query) {
  return axios({
    url: '/monitor/operLog/page',
    method: 'get',
    params: query
  })
}

/**
 * 删除操作日志
 * @param operId
 * @returns {*}
 */
export function delOperLog(operId) {
  return axios({
    url: '/monitor/operLog/' + operId,
    method: 'delete'
  })
}

/**
 * 清空操作日志
 * @returns {*}
 */
export function cleanOperLog() {
  return axios({
    url: '/monitor/operLog/clean',
    method: 'delete'
  })
}
